import com.fasterxml.jackson.databind.ObjectMapper;

import java.io.File;
import java.io.IOException;
import java.util.Map;

public class JsonTest1 {
    public static void main(String[] args) throws IOException {
        ObjectMapper objectMapper = new ObjectMapper();
        try {
            Map map = objectMapper.readValue(new File("./demo.json"), Map.class);
            System.out.println(map.get("name"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
